package com.binance.dynamodb.constant;
import lombok.extern.log4j.Log4j2;
import org.springframework.beans.factory.annotation.Value;

@Log4j2
public class EnvValue {
    private static String dynamodbEnvironment;

    public static String getEnv() {
        return dynamodbEnvironment;
    }

    public static void setEnv(String env) {
        dynamodbEnvironment = env;
    }

    @Value("${com.binance.amazon.dynamodb.environment}")
    public void init(String env) {
        log.info("EnvValue: dataEnv={}", env);
        setEnv(env);
    }
}
